package com.jobsleaf.propertytester;

import org.eclipse.jface.viewers.ILabelProviderListener;
import org.eclipse.jface.viewers.ITableLabelProvider;
import org.eclipse.swt.graphics.Image;

public class TableLabelProvider implements ITableLabelProvider
{

	public String getColumnText(Object element, int columnIndex)
	{

		StudentInfo sudentInfo = (StudentInfo) element;
		switch (columnIndex)
		{
		case 0:
			return sudentInfo.getRollNo();

		case 1:
			return sudentInfo.getStudentName();

		case 2:
			return sudentInfo.getStudentAge();

		case 3:
			return sudentInfo.getStudentDOB();

		case 4:
			return sudentInfo.getFatherName();

		default:
			break;
		}
		return "";
	}

	public boolean isLabelProperty(Object element, String property)
	{
		return false;
	}

	public Image getColumnImage(Object element, int columnIndex)
	{
		return null;
	}

	public void addListener(ILabelProviderListener listener)
	{
	}

	public void dispose()
	{
	}

	public void removeListener(ILabelProviderListener listener)
	{
	}

}
